Optimal. Leaf size=66 \[ a x+\frac {i b \text {Li}_2\left (-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+i b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3739, 3719, 2190, 2279, 2391} \[ a x+\frac {i b \text {Li}_2\left (-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+i b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2279
Rule 2391
Rule 3719
Rule 3739
Rubi steps
\begin {align*} \int \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx &=a x+b \int \tan \left (c+d \sqrt {x}\right ) \, dx\\ &=a x+(2 b) \operatorname {Subst}\left (\int x \tan (c+d x) \, dx,x,\sqrt {x}\right )\\ &=a x+i b x-(4 i b) \operatorname {Subst}\left (\int \frac {e^{2 i (c+d x)} x}{1+e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )\\ &=a x+i b x-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {(2 b) \operatorname {Subst}\left (\int \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d}\\ &=a x+i b x-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}-\frac {(i b) \operatorname {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}\\ &=a x+i b x-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {i b \text {Li}_2\left (-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 66, normalized size = 1.00 \[ a x+\frac {i b \text {Li}_2\left (-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {2 b \sqrt {x} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+i b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.65, size = 153, normalized size = 2.32 \[ \frac {2 \, a d^{2} x - 2 \, b d \sqrt {x} \log \left (-\frac {2 \, {\left (i \, \tan \left (d \sqrt {x} + c\right ) - 1\right )}}{\tan \left (d \sqrt {x} + c\right )^{2} + 1}\right ) - 2 \, b d \sqrt {x} \log \left (-\frac {2 \, {\left (-i \, \tan \left (d \sqrt {x} + c\right ) - 1\right )}}{\tan \left (d \sqrt {x} + c\right )^{2} + 1}\right ) - i \, b {\rm Li}_2\left (\frac {2 \, {\left (i \, \tan \left (d \sqrt {x} + c\right ) - 1\right )}}{\tan \left (d \sqrt {x} + c\right )^{2} + 1} + 1\right ) + i \, b {\rm Li}_2\left (\frac {2 \, {\left (-i \, \tan \left (d \sqrt {x} + c\right ) - 1\right )}}{\tan \left (d \sqrt {x} + c\right )^{2} + 1} + 1\right )}{2 \, d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int b \tan \left (d \sqrt {x} + c\right ) + a\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.93, size = 0, normalized size = 0.00 \[ \int a +b \tan \left (c +d \sqrt {x}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ a x + 2 \, b \int \frac {\sin \left (2 \, d \sqrt {x} + 2 \, c\right )}{\cos \left (2 \, d \sqrt {x} + 2 \, c\right )^{2} + \sin \left (2 \, d \sqrt {x} + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d \sqrt {x} + 2 \, c\right ) + 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.59, size = 150, normalized size = 2.27 \[ a\,x-\frac {b\,\left (\pi \,\ln \left (\cos \left (d\,\sqrt {x}\right )\right )+2\,c\,\ln \left ({\mathrm {e}}^{-d\,\sqrt {x}\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )-\pi \,\ln \left ({\mathrm {e}}^{-d\,\sqrt {x}\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )-\ln \left (\cos \left (c+d\,\sqrt {x}\right )\right )\,\left (2\,c-\pi \right )-\pi \,\ln \left ({\mathrm {e}}^{d\,\sqrt {x}\,2{}\mathrm {i}}+1\right )+d^2\,x\,1{}\mathrm {i}+\mathrm {polylog}\left (2,-{\mathrm {e}}^{-d\,\sqrt {x}\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}\right )\,1{}\mathrm {i}+2\,d\,\sqrt {x}\,\ln \left ({\mathrm {e}}^{-d\,\sqrt {x}\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )+c\,d\,\sqrt {x}\,2{}\mathrm {i}\right )}{d^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \tan {\left (c + d \sqrt {x} \right )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________